package cn.wang.service;


import cn.wang.dao.BaseDao;
import cn.wang.entity.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.jws.WebService;

/**
 * Created by john on 2017/10/25.
 */
@Service("castomerService")
@Transactional
public class CastomerServiceImpl implements CastomerService {
    @Autowired
  private BaseDao<Customer,String> customerStringBaseDao;

    public void add() {
        customerStringBaseDao.get(Customer.class,"2");
        System.out.println("执行service14");
    }
}
